// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

.el-input__inner:focus{
  border-color: #E82F5F !important;
}

.el-textarea__inner:focus{
  border-color: #E82F5F !important;
}

.el-radio{
  &:hover{
    color: #E82F5F;
    .el-radio__inner{
      border-color: #E82F5F;
    }
  }
  .is-checked{
    .el-radio__inner{
      background-color: #fff;
      border-color: #E82F5F;
      border-width: 2px;
      &::after{
        background-color: #E82F5F;
      }
    }
  }
}
.el-radio.is-checked{
  .el-radio__label{
    color: #E82F5F;
  }
}

.el-checkbox__inner:hover{
  border-color: #E82F5F !important;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner,
.el-checkbox__input.is-checked .el-checkbox__inner{
  background-color: #E82F5F !important;
  border-color: #E82F5F !important;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.user{
  .el-dialog{
    max-width: 420px;
    .el-form-item__content{
      line-height: 0 !important;
    }
  }
}
.users{
  .el-dialog{
    max-width: 420px;
  }
}
.sen{
  .el-dialog{
    max-width: 620px;
    .el-form-item__content{
      line-height: 0 !important;
    }
  }
}
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  border-radius: 10px;
  .el-dialog__header{
    border-bottom: 1px solid #E5E5E5;
    padding: 20px;
    .el-dialog__title{
      font-size: 19px;
      font-weight: 400;
      color: #333333;
    }
    .el-dialog__headerbtn{
      .el-dialog__close{
        color: #999999;
      }
      .el-dialog__close:hover{
        color: #E82F5F;
      }
    }
  }
  .avatar-uploader{
    line-height: 0;
  }
  .el-form{
    .el-button{
      width: 100%;
      height: 42px;
      background: #E82F5F;
      border-radius: 21px;
    }
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-table.no-r-b{
  border-right: none;
}
.el-table{
  border: 1px solid #EAE9E9;
  border-bottom: none;
  border-radius: 6px;
  th.is-leaf, .el-table td{
    border-color: #EAE9E9;
  }
  td{
    border-color: #EAE9E9;
  }
  &::before,&::after{
    background-color: #EAE9E9;
  }
}

.el-input__inner:focus{
  border-color: #E82F5F;
}

.el-loading-spinner .path{
	stroke: #E82F5F !important;
}

.el-picker-panel{
    .el-picker-panel__body-wrapper{
      .el-picker-panel__sidebar{
        .el-picker-panel__shortcut:hover{
          color: #E82F5F;
        }
      }
        .el-picker-panel__body{
            .el-date-picker__time-header{
                .el-date-picker__editor-wrap{
                    .el-input{
                        .el-input__inner:focus{
                            border-color: #E82F5F;
                        }
                    }
                    .el-time-panel{
                        .el-time-panel__footer{
                            .el-time-panel__btn.confirm{
                                color: #E82F5F;
                            }
                        }
                    }
                }
            }
            .el-date-picker__header{
                .el-picker-panel__icon-btn:hover,.el-date-picker__header-label:hover{
                    color: #E82F5F;
                }
            }
            .el-picker-panel__content{
                .el-date-table{
                    .el-date-table__row{
                        .start-date:not(.disabled) span,.end-date:not(.disabled) span{
                            background-color: #E82F5F;
                            color: #FFFFFF;
                        }
                        .today span{
                            color: #E82F5F;
                        }
                        .available:hover{
                            color: #E82F5F;
                        }
                    }
                }
                .el-year-table{
                    .current:not(.disabled) .cell{
                        background-color: #E82F5F;
                    }
                    .today .cell{
                        color: #E82F5F;
                    }
                    .available .cell:hover{
                        color: #E82F5F;
                    }
                }
                .el-month-table{
                    .current:not(.disabled) .cell{
                        background-color: #E82F5F;
                    }
                    .today .cell{
                        color: #E82F5F;
                    }
                    .cell:hover{
                        color: #E82F5F;
                    }
                }
            }
        }
    }
    .el-picker-panel__footer{
        .el-button--text{
            color: #E82F5F;
        }
		.el-button--text:hover{
			background-color: #FFFFFF !important;
			color: rgba(232, 47, 95, 0.8) !important;
		}
        .el-button--default{
            background-color: #E82F5F;
            border: none;
            color: #FFFFFF;
        }
        .el-button--default:hover{
            background-color: rgba(232, 47, 95, 0.8);
            border: none;
            color: #FFFFFF;
        }
    }
}

.el-date-editor--daterange.el-input__inner{
  max-width: 260px;
}
.el-range-editor.is-active{
  border-color: #E82F5F;
}
.el-range-editor.is-active:hover{
  border-color: #E82F5F;
}

.el-select-dropdown{
    .el-scrollbar{
        .el-select-dropdown__wrap{
            .el-scrollbar__view{
                .el-select-dropdown__item.selected{
                    color: #E82F5F;
                }
            }
        }
    }
}

.el-select .el-input.is-focus .el-input__inner{
  border-color: #E82F5F;
}
